/*
 * @Author: 刘岩 15136056318@163.com
 * @Date: 2023-11-11 16:49:46
 * @LastEditors: 刘岩 15136056318@163.com
 * @LastEditTime: 2023-11-14 15:50:07
 * @FilePath: /ysys_board/src/routers/pages.tsx
 * @Description:
 */
import { useLazy } from '@/hooks/index.tsx'
import { Spin } from 'antd'
const rootPath = '/src/pages/'
const Loading = () => {
  return (
    <>
      <Spin />
    </>
  )
}
export default [
  {
    path: '/home',
    element: useLazy(rootPath + 'home/index.tsx', <Loading></Loading>),
    meta: {
      title: '主页',
    },
  },
  {
    path: '/about',
    element: useLazy(rootPath + 'about/index.tsx', <Loading></Loading>),
    meta: {
      title: '关于',
    },
  },
  {
    path: '/demo',
    element: useLazy(rootPath + 'demo/index.tsx', <Loading></Loading>),
    meta: {
      title: '测试',
    },
  },
]
